<?php
//=======================================
//###################################
// Kayako Web Solutions
//
// Source Copyright 2001-2004 Kayako Web Solutions
// Unauthorized reproduction is not allowed
// License Number: $%LICENSE%$
// $Author: vshoor $ ($Date: 2005/05/20 17:56:12 $)
// $RCSfile: functions_pda.php,v $ : $Revision: 1.1 $ 
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
//###################################
//=======================================

function displayPDALoginForm($error)
{
	global $template, $_SWIFT;

	$template->assign("documenttitle", $_SWIFT["language"]["login"]);

	if (!empty($_SERVER["QUERY_STRING"]))
	{
		$template->assign("querystring", iif(!stristr($_SERVER["QUERY_STRING"], "logout"), $_SERVER["QUERY_STRING"]));
	}
	$template->assign("error", $error);

	echo $template->displayTemplate("loginformpda.tpl");
}

/**
* Display the header
*/
function displayPDAHeader($title, $nav = "")
{
	global $template, $_SWIFT;

	$template->assign("documenttitle", $title);
	$template->assign("nav", $nav);

	echo $template->displayTemplate("pdaheader.tpl");
}

/**
* 
*/
function displayPDAFooter()
{
	global $template;

	echo $template->displayTemplate("pdafooter.tpl");
}

?>